<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<f:metadata>
	<f:viewParam name="id" value="#{userModel.current.id}"></f:viewParam>
	<f:viewParam name="activateCode"
		value="#{userModel.current.activateCode}"></f:viewParam>
</f:metadata>
<head>
<title>Market place</title>

</head>

<body>
	<ui:composition template="/templates/masterTemplate.xhtml">
		<ui:define name="content">
			<f:event type="preRenderView"
				listener="#{userController.activateAccount}" />

			<h:outputStylesheet library="css" name="shopping.css"></h:outputStylesheet>
			<div id="center">
				<h:form id="centerForm">
					<p:panel header="#{msgs.accountActivation}"
						rendered="#{userModel.current.isActivated}">
						<h:panelGrid columns="1" cellspacing="20" style="font-size:1.0em">
							<h:outputText
								value="#{msgs.dearCustomer} #{userModel.current.lastName} #{userModel.current.firstName}" />
							<h:outputText value="#{msgs.accountActivation} #{msgs.succeed}."
								style="font-size:1.2em;color:blue"></h:outputText>
							<h:panelGroup>
								<h:outputText value="#{msgs.thankYouForChoosing} "></h:outputText>
								<h:commandLink value="#{msgs.webSiteName}"
									action="/index.xhtml?faces-redirect=true" />
							</h:panelGroup>
						</h:panelGrid>
					</p:panel>
					<p:panel header="#{msgs.accountActivation}"
						rendered="#{!userModel.current.isActivated}">
						<h:panelGrid columns="1" cellspacing="20" style="font-size:1.0em">
							<h:outputText value="#{msgs.accountActivation} #{msgs.failed}!!!"
								style="font-size:1.2em;color:blue"></h:outputText>
							<h:outputText value="#{msgs.tryAgainLater}."></h:outputText>
							<h:panelGroup>
								<h:outputLabel value="#{msgs.canNotActivateAccount} " />
								<h:commandLink value="#{msgs.letUsKnow}."
									action="/public/contactUs.xhtml?faces-redirect=true" />
							</h:panelGroup>
						</h:panelGrid>
					</p:panel>
				</h:form>
			</div>
			<div id="sideBarRight">
				<h:form id="rightForm">
					<ui:include src="/components/public/user/loginPanel.xhtml" />
					<ui:include
						src="/components/public/shopping/shoppingCartPanel.xhtml" />
				</h:form>
			</div>
		</ui:define>
	</ui:composition>
</body>
</html>